#include <stdio.h>
#include <unistd.h>
#include<string.h>


int main(int agrc, char *argv[], char *envp[])
{   
    int i=0;
    do{
        printf("%s>", envp[3] + 4);
        // while(scanf("%s",argv[i])!=EOF) i++;
        scanf("%s",argv[i]);
        puts(strcat(envp[3] + 4,strcat("/",argv[1])));
        execve(strcat(envp[3] + 4,strcat("/",argv[1])), argv, envp);
    }while (argv[0]);
    return 0;
}